package com.ice.chatserver.dao;

import com.ice.chatserver.pojo.ValidateMessage;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;


/**
* @author ice2020x
* @Date: 2023/2/3
* @Description:  验证消息
**/
@Repository
public interface ValidateMessageDao extends MongoRepository<ValidateMessage, String> {


    /**
     * 根据RoomId和Status和ValidateType 查询验证消息
     * @param roomId 房间id
     * @param status 状态
     * @param validateType 验证类型
     * @return ValidateMessage 验证消息
     */
    ValidateMessage findValidateMessageByRoomIdAndStatusAndValidateType(String roomId, Integer status, Integer validateType);
    
}